package cn.com.utt.unms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.utt.unms.mapper.AgentPageMapper;
import cn.com.utt.unms.pojo.Page;
import cn.com.utt.unms.service.AgentPageService;
@Service("agentPageService")
public class AgentPageServiceImpl implements AgentPageService{
	@Autowired
	private AgentPageMapper agentPageMapper;

	@Override
	public boolean agentPageIsExist(Long userId, String path) {
		int num=agentPageMapper.agentPageIsExist(userId, path);
		if(num==1){
			return true;
		}
		return false;
	}

	@Override
	public boolean agentPagesIsExist(List<Page> pages) {
		int num=agentPageMapper.agentPagesIsExist(pages);
		if(num>0){
			return true;
		}
		return false;
	}
	

}
